﻿@model DocumentPost
@using EasyMvc.Models
@using EasyMvc.Controls
@using EasyMvc.Utility
@{
    ViewContext.FormContext = new FormContext { FormId = "mainForm" };
    ViewContext.ClientValidationEnabled = true;
}

<tr class="forumtd">
    @using (Html.BeginCollectionItem("DocumentPosts"))
    {
    <td>
        @Html.TextBox("AddTime", Model.AddTime.ToCnDataString(), new { @class = "mydate" })
        <p>@Html.ValidationMessage("AddTime")</p>
    </td>
    <td>
        @Html.DropDownList("Gender", new SelectList(EnumHelper.GetItemValueList<EnumGender>(), "Key", "Value", Model.Gender))
    </td>
    <td>
        @Html.TextBox("Content", Model.Content)
        <p>@Html.ValidationMessage("Content")</p>
    </td>
    <td>
        <a href="#" class="delete">删除</a>
    </td>
    }
</tr>

